package com.bosssoft.user.permission.center.serve.pojo.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class RoleCompanyDTO {
    @ApiModelProperty("角色id")
    @JsonSerialize(using= ToStringSerializer.class)
    private  Long roleId;

    @ApiModelProperty("被授权公司ids")
    @JsonSerialize(using= ToStringSerializer.class)
    private  List<Long> authCompanyIds;




    @ApiModelProperty("当前登陆用户公司id")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long companyId;

    @NotNull
    @ApiModelProperty("租户id")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long tenantId;

    @ApiModelProperty("组织id")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long orgId;




}
